// 统一管理 陪教帖分区 请求方法

import {
  request
} from "@/utils/request";

const API = {
  GETCOACHPOSTLIST_URL: "/blogService/practiceBlog/page/", // 分页获取陪教贴列表
  SEARCHCOACHPOST_URL: "/blogService/practiceBlog/SearchPractices/" // 搜索陪教帖
}

// 分页获取陪教帖列表
export const reqGetCoachPostList = (startId) => request({
  url: API.GETCOACHPOSTLIST_URL + startId,
  method: 'GET'
})

// 搜索陪教帖
export const reqSearchCoachPost = (searchText, coachShortType) => request({
  url: API.SEARCHCOACHPOST_URL + `${searchText}/${coachShortType}`,
  method: 'Get'
})